package com.qf.service.impl;

import com.qf.mapper.DtsOrderGoodsMapper;
import com.qf.pojo.DtsOrderGoods;
import com.qf.service.DtsOrderGoodsService;
import com.qf.vo.StatGoodsVo;
import com.qf.vo.StatOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Zwnan
 */
@Service
public class DtsOrderGoodsServiceImpl implements DtsOrderGoodsService {

    @Autowired
    private DtsOrderGoodsMapper dtsOrderGoodsMapper;

    @Override
    public List<StatOrderVo> findstatOrder()  {
        return dtsOrderGoodsMapper.findstatOrder();
    }

    @Override
    public List<DtsOrderGoods> findById(Integer id) {
        return dtsOrderGoodsMapper.selectByOrderId(id);

    }

    @Override
    public List<StatGoodsVo> findstatGoods() {
        return dtsOrderGoodsMapper.findstatGoods();
    }
}
